package com.pth.model;

public class Zhinan {

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + id;
		result = prime * result
				+ ((publishtime == null) ? 0 : publishtime.hashCode());
		result = prime * result + scannum;
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Zhinan other = (Zhinan) obj;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (id != other.id)
			return false;
		if (publishtime == null) {
			if (other.publishtime != null)
				return false;
		} else if (!publishtime.equals(other.publishtime))
			return false;
		if (scannum != other.scannum)
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		return true;
	}

	public Zhinan() {
		super();
	}

	private String content;
	
	private int id;

	private String publishtime;

	private int scannum;

	private String title;

	public String getContent() {
		return content;
	}

	public int getId() {
		return id;
	}

	public String getPublishtime() {
		return publishtime;
	}

	public int getScannum() {
		return scannum;
	}

	public String getTitle() {
		return title;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public void setPublishtime(String publishtime) {
		this.publishtime = publishtime;
	}
	
	public void setScannum(int scannum) {
		this.scannum = scannum;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	
}
